package com.tianpengtech.admin;

import com.jfinal.config.Routes;
import com.tianpengtech.admin.account.AccountAdminController;
import com.tianpengtech.admin.appsetting.AppSettingAdminController;
import com.tianpengtech.admin.authenticate.AuthenticateAdminController;
import com.tianpengtech.admin.dictionary.DictionaryAdminController;
import com.tianpengtech.admin.fair.FairAdminController;
import com.tianpengtech.admin.fairadvertisement.FairAdvertisementAdminController;
import com.tianpengtech.admin.fairauth.FairAuthAdminController;
import com.tianpengtech.admin.fairbankno.FairBankNoAdminController;
import com.tianpengtech.admin.fairorder.FairOrderAdminController;
import com.tianpengtech.admin.fairsalary.FairSalaryAdminController;
import com.tianpengtech.admin.fairwithdraw.FairWithdrawAdminController;
import com.tianpengtech.admin.feedback.FeedBackAdminController;
import com.tianpengtech.admin.moneylog.MoneyLogAdminController;
import com.tianpengtech.admin.notice.SMSNoticeController;
import com.tianpengtech.admin.opertion.OpertionAdminController;
import com.tianpengtech.admin.permission.PermissionAdminController;
import com.tianpengtech.admin.platformincome.PlatFormIncomeAdminController;
import com.tianpengtech.admin.role.RoleAdminController;
import com.tianpengtech.admin.task.TaskAdminController;
import com.tianpengtech.admin.taskscreenshot.TaskScreenShotAdminController;
import com.tianpengtech.admin.user.UserAdminController;
import com.tianpengtech.admin.websitead.WebSiteAdAdminController;
import com.tianpengtech.admin.websiteemployee.WebSiteEmployeeAdminController;
import com.tianpengtech.admin.websitemsg.WebSiteMsgAdminController;
import com.tianpengtech.admin.websitewh.WebSiteWhAdminController;
import com.tianpengtech.common.plugin.shiro.ext.ShiroInterceptor;

public class AdminRoutes extends Routes{

	@Override
	public void config() {
		setBaseViewPath("/WEB-INF/view");

		addInterceptor(new ShiroInterceptor());
		add("/admin", AdminCommonController.class, "/admin");
		add("/admin/role", RoleAdminController.class, "/admin/role");
		add("/admin/permission", PermissionAdminController.class, "/admin/permission");
		add("/admin/account", AccountAdminController.class, "/admin/account");
		add("/admin/dictionary",DictionaryAdminController.class, "/admin/dictionary");
		add("/admin/opertion",OpertionAdminController.class, "/admin/opertion");
		add("/admin/user",UserAdminController.class, "/admin/user");
        add("/admin/authenticate",AuthenticateAdminController.class, "/admin/authenticate");
        add("/admin/task",TaskAdminController.class, "/admin/task");
        add("/admin/fair",FairAdminController.class, "/admin/fair");
        add("/admin/feedback",FeedBackAdminController.class, "/admin/feedback");
        add("/admin/fairauth",FairAuthAdminController.class, "/admin/fairauth");
        add("/admin/fairbankno",FairBankNoAdminController.class, "/admin/fairbankno");
        add("/admin/fairadvertisement",FairAdvertisementAdminController.class, "/admin/fairadvertisement");
        add("/admin/fairwithdraw",FairWithdrawAdminController.class, "/admin/fairwithdraw");
        add("/admin/websitewh", WebSiteWhAdminController.class, "/admin/websitewh");
        add("/admin/websiteemployee", WebSiteEmployeeAdminController.class, "/admin/websiteemployee");
        add("/admin/websitemsg", WebSiteMsgAdminController.class, "/admin/websitemsg");
        add("/admin/taskscreenshot", TaskScreenShotAdminController.class, "/admin/taskscreenshot");
        add("/admin/fairorder", FairOrderAdminController.class, "/admin/fairorder");
        add("/admin/appsetting",AppSettingAdminController.class, "/admin/appsetting");
        add("/admin/fairsalary",FairSalaryAdminController.class, "/admin/fairsalary");
        add("/admin/moneylog", MoneyLogAdminController.class, "/admin/moneylog");
        add("/admin/websitead", WebSiteAdAdminController.class, "/admin/websitead");
        add("/admin/platformincome", PlatFormIncomeAdminController.class, "/admin/platformincome");
        add("/admin/notice", SMSNoticeController.class, "/admin/notice");
	}
}
